package com.qinsilk.axon.inventory.query

import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table

@Entity
@Table(name = "inventory_view")
data class InventoryQueryModel(
        @Id var inventoryId: String,
        var productName: String,
        var quantity: Int,
        var lastEvent: String
) {
    // JPA需要无参构造函数
    constructor() : this("", "", 0, "")
}
